/**
 * Created by zhouxiumin on 2018/6/3.
 */

const js_str = 'function book_parse(url, html) { console.log(html); return ["good"]}';


eval(js_str);

const book = {
    parser: 'book_parse'
};

const url = '';
const html = 'good evening';

function doCallBack(fn, args) {
    return fn.apply(this, args);
}

function test() {

    const result = doCallBack(eval(book.parser),[url, html]);
    console.log(result);
}

if({}){
    console.log("{} is true")
}

test();